package com.lm.scau.framedemos.CViews;

import android.os.Bundle;
import android.view.View;

import com.lm.scau.framedemos.BaseActivity;
import com.lm.scau.framedemos.R;
import com.lm.scau.framedemos.Views.CustomLineView;
import com.lm.scau.framedemos.Views.LMTitleBar;
import com.lm.scau.framedemos.Views.SunmaryView;
import com.lm.scau.framedemos.Views.ViewHolder;

/**
 * Function:
 * auth：liming on 2016/7/13 14:05
 * mail：liming@wxchina.com
 */
public class LineActivity extends BaseActivity {
    private SunmaryView sunmaryView;
    private LMTitleBar lmTitleBar;
    private CustomLineView lineView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_line_view);
        sunmaryView = (SunmaryView)findViewById(R.id.sunmary_view);
        lineView = (CustomLineView)findViewById(R.id.line_view);
        lmTitleBar = (LMTitleBar)findViewById(R.id.titlebar);
        lmTitleBar.setTitle("折线图");
        sunmaryView.setTitle("折线图");
        sunmaryView.setSunmary("继承View实现的一个继承控件，具体看view的绘制技巧");
        sunmaryView.getBtnCancel().setVisibility(View.GONE);
        sunmaryView.getBtnOk().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                lineView.getThread().start();
                v.setEnabled(false);
            }
        });
    }
}
